#include "IndexBuffer.h"
#include "RendererAPI.h"
#include "Fysics/GraphicsAPI/OpenGL/OpenGLIndexBuffer.h"

namespace Fysics
{
	IndexBuffer* Fysics::IndexBuffer::Create(unsigned int* indices, unsigned int count)
	{
		switch (GetAPI())
		{
		case RendererAPI::OpenGL:
			return new OpenGLIndexBuffer(indices, count);
		}
		return nullptr;
	}
}